/**
 * redis 工具类
 */
package com.echat.config.properties;

import com.echat.core.utils.redis.JedisUtil;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RedisConfig implements InitializingBean {

    @Value("${redis.host}")
    private String redisAddress;

    @Override
    public void afterPropertiesSet() throws Exception {
        JedisUtil.init(redisAddress);
    }

}
